import axios from 'axios'
const baseUrl = import.meta.env.VITE_BASE_URL;
function Http({
    url,
    method = "get",
}) {
    return axios({
        url: baseUrl + url,
        method
    })
}
/* 城市逆向地址解析 */
const getCity = (city) => {
    return Http({
        url: `/geocode/geo?address=${city}&key=e8531ba25c5cab3cffc96dcd5259d5ee`
    })
}
export { getCity }